<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title>友宝后台管理系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
	<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
	<link href="css/bootstrap-responsive.css" rel="stylesheet">
	<link href="css/charisma-app.css" rel="stylesheet">
	<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='css/fullcalendar.css' rel='stylesheet'>
	<link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='css/chosen.css' rel='stylesheet'>
	<link href='css/uniform.default.css' rel='stylesheet'>
	<link href='css/colorbox.css' rel='stylesheet'>
	<link href='css/jquery.cleditor.css' rel='stylesheet'>
	<link href='css/jquery.noty.css' rel='stylesheet'>
	<link href='css/noty_theme_default.css' rel='stylesheet'>
	<link href='css/elfinder.min.css' rel='stylesheet'>
	<link href='css/elfinder.theme.css' rel='stylesheet'>
	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='css/opa-icons.css' rel='stylesheet'>
	<link href='css/uploadify.css' rel='stylesheet'>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<link rel="shortcut icon" href="img/favicon.ico">
		
</head>

<body>
	<s:include value="header.jsp"/>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
		<s:include value="left.jsp"/>
			
			<div id="content" class="span10">
			<!-- content starts -->
			

			<div>
				<ul class="breadcrumb">
					<li>
						<a href="index">主页</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">包裹查询</a>
					</li>
				</ul>
			</div>
			<div class="row-fluid sortable ui-sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title="">
						<h2><i class="icon-edit"></i>用户包裹查询</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<form id="form1" class="form-horizontal" action="packageDetailByPhoneNum" method="get">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">根据手机号码查询:</label>
							  <div class="controls">
								<input type="text" name="phoneNum" class="span4 typeahead" id="typeahead" data-items="2" style="float: left;"/>
							  	<button type="button" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>   

						<form id="form2" class="form-horizontal" action="packageDetailByParcelID" method="get">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">根据快递单号查询:</label>
							  <div class="controls">
								<input name="parcelID" type="text" class="span4 typeahead" id="typeahead" data-items="2" style="float: left;"/>
							  	<button type="button" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>   
						
					</div>
				</div><!--/span-->
			</div>
			
			<div class="row-fluid sortable ui-sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title="">
						<h2><i class="icon-edit"></i> 快递包裹查询</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<form id="form3" class="form-horizontal" action="package!getByCourierPhone" method="get">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">根据手机号码查询:</label>
							  <div class="controls">
								<input type="text" name="phoneNum" class="span4 typeahead" id="typeahead" data-items="2" style="float: left;"/>
							  	<button type="button" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>   

						<form class="form-horizontal" action="package!getByCourierRfid" method="get">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">请选择授权卡:</label>
							  <div class="controls">
								<select id="cardID" style="width: 280px;">
									</select>
							  </div>
							</div>
							<div class="control-group">
							  <label class="control-label" for="typeahead">根据rfid查询:</label>
							  <div class="controls">
								<input name="rfid" type="text" class="span4 typeahead" id="rfid" data-items="2" style="float: left;"/>
							  	<button type="submit" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>   
					</div>
				</div><!--/span-->
			</div>
			
			<div class="row-fluid sortable ui-sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title="">
						<h2><i class="icon-edit"></i> 代理商包裹查询</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<form id="form4" class="form-horizontal" action="package!getByAgent" method="get">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">请选择代理商:</label>
							  <div class="controls">
								<select class="span4 typeahead" id="agentID" data-items="2" style="float: left;" name="agentID">
	                             </select>
							  </div>
							</div>
							<div class="control-group">
							  <label class="control-label" for="typeahead">请选择设备网点:</label>
							  <div class="controls">
								<select class="span4 typeahead" id="branchID" data-items="2" style="float: left;" name="branch">
	                             </select>
							  </div>
							</div>
							<div class="control-group">
								<label class="control-label" for="typeahead">开始时间:</label>
								<div class="controls">
									<input type="text" class="timesofpackage Wdate"id="starttime" data-items="2" name="starttime"
												onfocus="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechange();},oncleared:function(){clearTimes();}})" />
								</div>
								
								</div>
								<div class="control-group">
								<label class="control-label" for="typeahead">结束时间:</label>
									<div class="controls">
									<input type="text" class="timesofpackage Wdate" id="endtime" name="endtime"
											data-items="2"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss',onpicked:function(){timechange();},oncleared:function(){clearTimes();}})" />
									<input type="button" id="searchTerm"  class="btn btn-primary" value="查&nbsp;&nbsp;&nbsp;&nbsp;询" style="margin-left:50px;margin-bottom:10px;margin-top: 10px;"/>
									</div>
								</div>
						  </fieldset>
						</form>   
							</div>
					</div>
				</div><!--/span-->
		<div class="row-fluid sortable ui-sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title="">
						<h2><i class="icon-edit"></i> 网点包裹查询</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">

						<form class="form-horizontal" action="getUntakenParcel!getPackage?curpage=1&pageSize=36&flag=1" method="post">

						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">请选择要查询的网点:</label>
							  <div class="controls">
	                             <select class="span4 typeahead" id="bracchId" data-items="2" style="float: left;" name="branchId">
	                             </select>
	                             <button type="submit" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>      				
					</div>
				</div><!--/span-->
			</div>
			
			
		<%-- <div class="row-fluid sortable ui-sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title="">
						<h2><i class="icon-edit"></i> 快递公司包裹查询</h2>
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<form class="form-horizontal" action="package!getByCompany" method="post">
						  <fieldset>
							<div class="control-group">
							  <label class="control-label" for="typeahead">请选择快递公司:</label>
							  <div class="controls">
	                             <select class="span4 typeahead" id="companyName" data-items="2" style="float: left;" name="companyName">
	                             </select>
	                             <button type="submit" class="btn btn-primary" style="margin-left:23px;">查询</button>
							  </div>
							</div>
						  </fieldset>
						</form>      				
					</div>
				</div><!--/span-->
			</div> --%>
			
			</div>

					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
				
		<hr>

		<s:include value="footer.jsp" />
		
	</div><!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="js/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="js/bootstrap-transition.js"></script>
	<!-- alert enhancer library -->
	<script src="js/bootstrap-alert.js"></script>
	<!-- modal / dialog library -->
	<script src="js/bootstrap-modal.js"></script>
	<!-- custom dropdown library -->
	<script src="js/bootstrap-dropdown.js"></script>
	<!-- scrolspy library -->
	<script src="js/bootstrap-scrollspy.js"></script>
	<!-- library for creating tabs -->
	<script src="js/bootstrap-tab.js"></script>
	<!-- library for advanced tooltip -->
	<script src="js/bootstrap-tooltip.js"></script>
	<!-- popover effect library -->
	<script src="js/bootstrap-popover.js"></script>
	<!-- button enhancer library -->
	<script src="js/bootstrap-button.js"></script>
	<!-- accordion library (optional, not used in demo) -->
	<script src="js/bootstrap-collapse.js"></script>
	<!-- carousel slideshow library (optional, not used in demo) -->
	<script src="js/bootstrap-carousel.js"></script>
	<!-- autocomplete library -->
	<script src="js/bootstrap-typeahead.js"></script>
	<!-- tour library -->
	<script src="js/bootstrap-tour.js"></script>
	<!-- library for cookie management -->
	<script src="js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="js/excanvas.js"></script>
	<script src="js/jquery.flot.min.js"></script>
	<script src="js/jquery.flot.pie.min.js"></script>
	<script src="js/jquery.flot.stack.js"></script>
	<script src="js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="js/charisma.js"></script>
	<script src="js/layer/layer.js"></script>  
	<script type="text/javascript">
	$("#form1").find("button").click(function(){
		if($("#form1").find("input").val()==""){
			alert("请输入查询条件！");
		}else{
			$("#form1").submit();
		}
	});
	$("#form2").find("button").click(function(){
		if($("#form2").find("input").val()==""){
			alert("请输入查询条件！");
		}else{
			$("#form2").submit();
		}
	});
	$("#form3").find("button").click(function(){
		if($("#form3").find("input").val()==""){
			alert("请输入查询条件！");
		}else{
			$("#form3").submit();
		}
	});
	$("#searchTerm").click(function(){
		$("#form4").submit();
	});
	     $(function(){
	    	 $.post("agent!selectAgent",function(v){
	    		$("#agentID").html(v);
	    		$("#agentID").change();
	    	 });
	    	 $.post("branchAction!getAllBranchOfpack",function(v){
	    		$("#bracchId").html(v);
	    	 });
	    	 $.post("packageInfo!getExpCompanyAll",function(v){
	    		$("#companyName").html(v);
	    	 });
	    	 $.post("courier!getAllCourierOfpack",function(v){
			   		$("#cardID").html(v);
			   	 });
	     });
	     $("#cardID").change(function(){
				var rfid = $("#cardID").val();
				$("#rfid").val(rfid);
			});
	     $("#agentID").change(function(){
	    	 $.post("branchAction!selectAgentBranch?agentID="+$("#agentID").val(),function(v){
			   		$("#branchID").html(v);
			   	 });
			});
	</script>
</body>
</html>
